HTMLify
style.css
Views: 19 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | .spinner-1 { width: 50px; aspect-ratio: 1; border-radius: 50%; border: 8px solid; border-color: #000 #0000; animation: s1 1s infinite; } @keyframes s1 {to{transform: rotate(.5turn)}} .spinner-2 { width: 50px; aspect-ratio: 1; border-radius: 50%; border: 8px solid lightblue; border-right-color: orange; animation: s2 1s infinite linear; } @keyframes s2 {to{transform: rotate(1turn)}} .spinner-3 { width: 50px; padding: 8px; aspect-ratio: 1; border-radius: 50%; background: #25b09b; --_m: conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box; -webkit-mask: var(--_m); mask: var(--_m); -webkit-mask-composite: source-out; mask-composite: subtract; animation: s3 1s infinite linear; } @keyframes s3 {to{transform: rotate(1turn)}} .spinner-4 { width: 50px; --b: 8px; /* the border thickness */ aspect-ratio: 1; border-radius: 50%; padding: 1px; background: conic-gradient(#0000 10%,#f03355) content-box; -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b))); -webkit-mask-composite: destination-in; mask-composite: intersect; animation:s4 1s infinite steps(10); } @keyframes s4 {to{transform: rotate(1turn)}} .spinner-5 { width: 50px; --b: 8px; /* the border thickness */ aspect-ratio: 1; border-radius: 50%; background: #514b82; -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 70deg,#0000 71deg 90deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b))); -webkit-mask-composite: destination-in; mask-composite: intersect; animation: s5 1s infinite; } @keyframes s5 {to{transform: rotate(.5turn)}} .spinner-6 { width: 50px; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: radial-gradient(farthest-side,#ffa516 95%,#0000) 50% 0/12px 12px no-repeat, radial-gradient(farthest-side,#0000 calc(100% - 5px),#ffa516 calc(100% - 4px)) content-box; animation: s6 2s infinite ; } @keyframes s6 {to{transform: rotate(1turn)}} .spinner-7 { width: 50px; aspect-ratio: 1; --_c: radial-gradient(farthest-side,#25b09b 92%,#0000); background: var(--_c) top, var(--_c) left, var(--_c) right, var(--_c) bottom; background-size: 12px 12px; background-repeat: no-repeat; animation: s7 1s infinite; } @keyframes s7 {to{transform: rotate(.5turn)}} .spinner-8 { width: 50px; aspect-ratio: 1; color: #f03355; --_c: no-repeat radial-gradient(farthest-side,currentColor 92%,#0000); background: var(--_c) 50% 0 /12px 12px, var(--_c) 50% 100%/12px 12px, var(--_c) 100% 50%/12px 12px, var(--_c) 0 50%/12px 12px, var(--_c) 50% 50%/12px 12px, conic-gradient(from 90deg at 4px 4px,#0000 90deg,currentColor 0) -4px -4px/calc(50% + 2px) calc(50% + 2px); animation: s8 1s infinite linear; } @keyframes s8 {to{transform: rotate(.5turn)}} .spinner-9 { width: 50px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(farthest-side,#f03355 95%,#0000) 50% 1px/12px 12px no-repeat, radial-gradient(farthest-side,#0000 calc(100% - 14px),#ccc 0); animation: s9 2s infinite linear; } @keyframes s9 {to{transform: rotate(1turn)}} .spinner-10 { width: 50px; aspect-ratio: 1; color: #854f1d; border-radius: 50%; display: grid; background: conic-gradient(from 90deg at 4px 4px,#0000 90deg,currentColor 0) -4px -4px/calc(50% + 2px) calc(50% + 2px), radial-gradient(farthest-side,currentColor 6px,#0000 7px calc(100% - 6px),currentColor calc(100% - 5px)) no-repeat; animation: s10 2s infinite linear; position: relative; } .spinner-10:before { content: ""; border-radius: inherit; background: inherit; transform: rotate(45deg); } @keyframes s10 {to{transform: rotate(.5turn)}} /**/ body { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); grid-auto-rows: 130px; place-items:center; } * { box-sizing: border-box; } |